<?php
namespace Home\Model;
use Think\Model\ViewModel;

class AgentAccountViewModel extends ViewModel
{
    public $viewFields = array(
        'agent' => array(
            'agent_name','agent_id','mobile','parent_id','agent_id',
            '_type' => 'LEFT'
        ),
        'agent_account' => array(
            'account_id','audit_manager','amount' ,
            'record_time','enclosure','record_remark','audit_status','audit_time','audit_remark',
            '_on' => 'agent_account.agent_id = agent.agent_id' ,
            '_type' => 'RIGHT'
        ),
    );
}